package com.gnerv.sylvanas.business.manage.model.bo;

import com.gnerv.sylvanas.business.manage.model.entity.Post;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class PostBO {

    private String ukId;
    private String name;
    private String roleUkId;

    public Post toPost() {
        Post post = new Post();
        BeanUtils.copyProperties(this, post);
        post.setGmtCreate();
        post.setGmtModified();
        return post;
    }
}